package router

import (
	"github.com/gin-gonic/gin"
	"go-learn/api"
)

func MongodbRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
	BaseRouter := Router.Group("mongodb_test")
	{
		BaseRouter.POST("InsertMany", api.InsertMany)
		BaseRouter.POST("FindById", api.FindById)
		BaseRouter.POST("FindMany", api.FindMany)
		BaseRouter.POST("UpdateById", api.UpdateById)
		BaseRouter.POST("UpdateMany", api.UpdateMany)
		BaseRouter.POST("DeleteById", api.DeleteById)
		BaseRouter.POST("DeleteMany", api.DeleteMany)
	}
	return BaseRouter
}
